package Practica4.EBNF;
import org.antlr.runtime.CharStream;
import org.antlr.runtime.CommonToken;

public class Token_file extends CommonToken{
	private String fileName;
	
	public Token_file (CharStream input, int type, int channel, int start, int stop) {
		super(input, type, channel, start, stop);
		setFileName(new String());
	}
	
	public void setFileName(String f) {
		fileName = f;
	}
	
	public String getFileName() {
		return fileName; 
	}
	
	public String toString() { 
		return super.toString() +"[fichero =\" "+getFileName()+" \"]"; 
	}
}
